const TipsModel = require('../../model/home/tips/index')

const home = {
    tips: async (req, res) => {
        const month = req.query.month
        await TipsModel(month).then(data=>{
            if(data.length){
                res.returnMsg({list: data}, '查询成功', 200)
            }else{
                res.returnMsg(null, '系统错误，请联系管理员', 500)
            }
        })
    }
}
module.exports = home;
